home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / Tools / Development / stunnel-4.04 / _src / tools / Makefile.am < prev    next >
Encoding:
Makefile  |  2003-01-12  |  906 b   |  31 lines

  1. DISTCLEANFILES = stunnel.pem
  2. EXTRA_DIST = ca.html ca.pl importCA.html importCA.sh \
  3.     stunnel.spec stunnel.mak stunnel.cnf
  4.  
  5. confdir = $(sysconfdir)/stunnel
  6. conf_DATA = stunnel.conf-sample stunnel.pem
  7.  
  8. docdir = $(datadir)/doc/stunnel
  9. examplesdir = $(docdir)/examples
  10. examples_DATA = ca.html ca.pl importCA.html importCA.sh \
  11.     stunnel.spec stunnel.init
  12.  
  13. openssl=$(ssldir)/bin/openssl
  14. stunnel.pem: stunnel.cnf
  15.     if test -r "$(RANDOM_FILE)"; \
  16.         then dd if="$(RANDOM_FILE)" of=stunnel.rnd bs=256 count=1; \
  17.             RND="-rand stunnel.rnd"; \
  18.         else RND=""; fi; \
  19.     $(openssl) req -new -x509 -days 365 -nodes $$RND \
  20.         -config $(srcdir)/stunnel.cnf -out stunnel.pem -keyout stunnel.pem; \
  21.     test $(USE_DH) -eq 0 || $(openssl) gendh $$RND 512 >> stunnel.pem
  22.     $(openssl) x509 -subject -dates -fingerprint -noout \
  23.         -in stunnel.pem
  24.  
  25. install-data-hook:
  26.     chmod 0600 $(confdir)/stunnel.pem
  27.  
  28. clean-local:
  29.     -rm -f stunnel.rnd
  30.  
  31.